﻿using DevKnightlie.WPF.AutoForm.FieldDefinitions;
using System;
using System.Collections.ObjectModel;
using System.Windows;

namespace DevKnightlie.WPF.AutoForm.Demo
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            // Set up some field definitions for certain properties
            FieldDefinitionRegistry.Default.RegisterDefinition<String, FilePickerFieldDefinition>("*Filename");
            FieldDefinitionRegistry.Default.RegisterDefinition<String, MemoFieldDefinition>("Notes"); 
            // We want an observable string collection to be in a list box
            FieldDefinitionRegistry.Default.RegisterDefinition<ObservableCollection<String>, StringListFieldDefinition>();



            InitializeComponent();
        }

    }
}
